<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<%@ include file="/commons/basejs.jsp" %>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>编辑渠道--中小型企业后台管理模板</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="${path }/static/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="${path }/static/css/public.css" media="all" />
</head>
<body class="childrenBody">
<form class="layui-form" style="width:80%;">
	<div class="layui-form-item layui-row layui-col-xs12" style="width: 34%;">
		<label class="layui-form-label">渠道名</label>
		<input id="id" name="id" type="hidden"  value="${organization.id}">
		<div class="layui-input-block">
			<input type="text" id="name" name="name" value="${organization.name}" class="layui-input name" lay-verify="required" placeholder="请输入渠道名">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">省份</label>
		<div class="layui-input-inline layui-form">
			<select id="province" name="province" lay-filter="province" class="province" lay-verify="required">
				<option value="">请选择省</option>
			</select>
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">地市</label>
		<div class="layui-input-inline layui-form">
			<select id="city" name="city" lay-filter="city" class="city" disabled>
				<option value="">请选择市</option>
			</select>
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">区县</label>
		<div class="layui-input-inline layui-form">
			<select id="area" name="area" lay-filter="area" class="area" disabled>
				<option value="">请选区县</option>
			</select>
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">上级部门</label>
		<div class="layui-input-inline layui-form">
			 <input type="text" id="pid" name="pid" value= "${organization.pid}" lay-filter="tree" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<div class="layui-input-block">
			<button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="editChannel">确认修改</button>
			<button type="reset" class="layui-btn layui-btn-sm layui-btn-primary">取消</button>
		</div>
	</div>
</form>
<script type="text/javascript">
	var tempprovince = "${organization.province}";
	var tempcity = "${organization.city}";
	var temparea = "${organization.area}";
</script>
<script type="text/javascript" src="${path }/static/layui/layui.js"></script>
<script type="text/javascript" src="${path }/static/page/organization/organizationEdit.js"></script>
</body>
</html>